package com.example.model.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 课程设计题目实体类，对应数据库course_topic表
 */
@Data
@Schema(description = "课程设计题目信息，对应数据库course_topic表")
public class CourseTopic {
    @Schema(description = "题目ID，主键", required = true, example = "1")
    private Integer id;             // 题目ID，主键
    
    @Schema(description = "课程设计题目名称", required = true, example = "校园图书管理系统")
    private String title;           // 题目名称
    
    @Schema(description = "题目详细描述和要求", required = true, example = "设计并实现一个校园图书管理系统，包含图书借阅、归还、查询等功能")
    private String description;     // 题目详细描述
    
    @Schema(description = "出题教师ID，外键关联user表", required = true, example = "5")
    private Integer teacherId;      // 出题教师ID，外键关联user表
    
    @Schema(description = "该题目允许的最大学生数", required = true, example = "4")
    private Integer maxStudents;    // 每组最大学生数
    
    @Schema(description = "是否启用: 0-禁用, 1-启用", required = true, example = "1")
    private Integer isActive;       // 是否启用: 0-禁用, 1-启用
}